import request from '@/utils/request'

// 查询功能列列表
export function listFuns(query) {
  return request({
    url: '/earn/funs/list',
    method: 'get',
    params: query
  })
}

// 查询功能列详细
export function getFuns(id) {
  return request({
    url: '/earn/funs/' + id,
    method: 'get'
  })
}

// 新增功能列
export function addFuns(data) {
  return request({
    url: '/earn/funs',
    method: 'post',
    data: data
  })
}

// 修改功能列
export function updateFuns(data) {
  return request({
    url: '/earn/funs',
    method: 'put',
    data: data
  })
}

// 删除功能列
export function delFuns(id) {
  return request({
    url: '/earn/funs/' + id,
    method: 'delete'
  })
}
